<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<%@ page import="ParcelDelivery.common.Customer"%>
<%@ page import="OnlineLibrary.managers.AuctionMgr"%>
<%@ page import="OnlineLibrary.managers.DeliveryMgr"%>
<%@ page import="java.util.ArrayList"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Purchase detail</title>
</head>
<body>

	<%
		String firstname = request.getParameter("firstname");
		String lastname = request.getParameter("lastname");
		String street = request.getParameter("Street");
		String number = request.getParameter("Number");
		String box = request.getParameter("Box");
		
		String zipcode = request.getParameter("zipcode");
		String city = request.getParameter("city");
		String country = request.getParameter("country");
		Customer client = new Customer(firstname, lastname, street, number,
		box, zipcode, city, country);
		String isbn = request.getParameter("isbn");
		String price = request.getParameter("price");


		AuctionMgr auctionMgr = new AuctionMgr();
		auctionMgr.launchAuction(isbn, Float.parseFloat(price),client);
		auctionMgr.destroy();
		

 		out.println("Your purchase is completed.");

	%>
	
</body>
</html>